<?php
/**
 * Created by PhpStorm.
 * User: xiaoshuang.li
 * Date: 2014/12/18
 * Time: 13:32
 */
?>
<?php $post = get_post(); $colspan = 2;?>
<tr id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="border-bottom:1px #d3d3d3 solid;">
    <?php if (has_post_thumbnail() ) :  $colspan = 1;?>
        <td style="width:150px;height: 150px;">
            <?php the_post_thumbnail("thumbnail"); ?>
        </td>
    <?php endif; ?>
    <td class="entry-content" colspan="<?php echo $colspan ?>" style="height: 150px;">
        <i> <div class="post-title" style="margin-bottom: 10px;"><?php the_shortlink($post->post_title, $post->post_title); ?></div></i>
        <div class="entry-excerpt"><?php echo $post->post_excerpt; ?></div>
        <div style="position:absolute; bottom: 30px;"><?php the_date() ?></div>
    </td>
    <tr><td colspan="2" height="10px">
        <hr style="height:2px; border-bottom:1px solid #d3d3d3; border-top:1px solid #d3d3d3;">
    </td></tr>
</tr>